Skip to content

pod!: Standardize on PodOption<Address>#183

Merged
grod220 merged 3 commits intomainfrom
pod-option-updates
Feb 27, 2026
Merged

pod!: Standardize on PodOption<Address>#183
grod220 merged 3 commits intomainfrom
pod-option-updates

Conversation

@grod220
Copy link
Member

@grod220 grod220 commented Feb 26, 2026

Part of #175

spl-pod currently has two ways to represent optional addresses:

  • optional_keys::OptionalNonZeroPubkey
  • option::PodOption<Address>

This PR reduces this duplication and aligns on PodOption<Address> and extends PodOption to fully cover what was deleted in optional_keys:

  • From<PodOption> for Option
  • From<PodOption> for COption
  • borsh derives
  • serde impl for PodOption<Address>

@grod220 grod220 mentioned this pull request Feb 26, 2026
11 tasks
@grod220 grod220 requested review from febo and joncinque February 26, 2026 10:19
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few comments to make this a bit more general

@grod220 grod220 requested a review from joncinque February 27, 2026 18:43
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one last comment, looks great overall!

Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@grod220 grod220 merged commit 26e7841 into main Feb 27, 2026
47 checks passed
@grod220 grod220 deleted the pod-option-updates branch February 27, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants